package factoryMethodPattern;

public class HuaweiFactory implements ProductFactory{

    @Override
    public PhoneProduct createPhone() {
        System.out.println("小艺正在初始化");
        return new HuaweiPhone();
    }

    @Override
    public RouterProduct createRouter() {
        return new HuaweiRoute();
    }
}
